str1 = 'Hello World'
i = 0
while i < len(str1):
    print(str1[i])
    i += 1

print('--' * 20)

for char in str1:
    print(char)